package bbkj.org.cn.akka;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;

public class ActorSystemDemo {

	public static void main(String[] args) {
		final ActorSystem actorSystem = ActorSystem.create("actor-system");
		
		final ActorRef actorRef = actorSystem.actorOf(Props.create(SimpleActor.class),"simple-actor");
		ActorRef actionRef = actorSystem.actorOf(Props.create(ActionActor.class),"action");
		actorRef.tell("value1", actionRef);
		actorSystem.stop(actorRef);
	}
}
